package com.b511.swpu.cementbackend.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Range;

import javax.persistence.*;

@Entity
@Table(name = "BA_STRATUM", schema = "WANGBING")
@Getter
@Setter
@Accessors(chain = true)
// 地质分层 对应表 BA_STRATUM
public class BA_Stratum extends BABaseEntity {
    @Id
    @GenericGenerator(name="idGenerator", strategy="uuid")
    @GeneratedValue(generator="idGenerator")
    // ID生成策略是否改为UUID -> String
    @Column(name = "BA_STRATUM_ID")
    private String BA_Stratum_ID;

    @Basic
    @Column(name = "STRATUMNUMBER", length = 50)
    private String stratumNumber;

    @Basic
    @Column(name = "STRATUMNAME", length = 50)
    private String stratumName;

    @Basic
    @Column(name = "BOTTOMDEPTH")
    private Double bottomDepth;

    @Basic
    @Column(name = "BOTTOMVERTICAL")
    private Double bottomVertical;

    @Basic
    @Column(name = "DRILLINGTHICKNESS")
    private Double drillingThickness;

    @Basic
    @Column(name = "THICKNESS")
    private Double thickness;

    @Basic
    @Column(name = "LITHOLOGYDESCRIPTION", length = 500)
    private String lithologyDescription;

    @Basic
    @Column(name = "OILGASDISPLAY", length = 500)
    private String oilGasDisplay;

    @ManyToOne
    @JoinColumn(name="ba_well_id")
    private BA_Well well;

}
